import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  state:{
    list:[],
    list1:[],
    fourier_list:[]
  },
  mutations: {
    // 在这里定义你的 mutations，用于修改状态

    updateData(state, newValue) {
      console.log("list",state.list1)
      state.list = newValue;
    },
    fourier(state,newValue){

      state.fourier_list = newValue
      console.log("fourier",state.fourier_list)
    },
    updateData1(state, newValue1) {
      state.list1 = newValue1;
      console.log("list1",state.list1)
    },
    time(state,time){
      state.real_time = time

    }
  },
  modules: {
    app,
    user,
    tagsView,
    permission,
    settings
  },
  getters
})

export default store
